newEntity{
	define_as = "ELEMENTAL",
	type = "elemental", subtype = "elemental",
	display = "E", color=colors.YELLOW,
	name = "air elemental",
	desc = "Nigh invisible, this elemental causes the air around it to charge up as it dashes toward you with speed and grace.",
	level_range = {1, 50}, exp_worth = 1,
	rarity = 1,
	rank = 1,
	max_life = resolvers.rngavg(7,9),
	stats = { str=9, dex=15, con=8 },
	ai = "dumb_talented_simple", ai_state = { talent_in=3, },
	combat = { dam=2, atk=10, apr=2, damtype=DamageType.LIGHTNING },
	combat_armor = 0, combat_defense = 0,
	resists = { [DamageType.LIGHTNING] = 50, [DamageType.EARTH] = -50, },
	faction = "air",
}

-- the boss, no rarity means it will not be randomly generated.
newEntity{
	define_as = "ELEMENTAL_BOSS",
	type = "elemental", subtype = "elemental",
	display = "E", color=colors.GOLD,
	name = "Ariel, Queen of Air", unique = true,
	desc = "Laughing and giggling, the mistress of air darts around on zephyrs with great grace and speed.",
	level_range = {20, 50}, exp_worth = 1,
	rank = 5,
	body = { INVEN = 100, BODY = 1, CLOAK = 1, HEAD = 1, BELT = 1, HANDS = 1, FEET = 1 },
	max_life = resolvers.rngavg(90,100),
	stats = { str=15, dex=25, con=15 },
	ai = "dumb_talented_simple", ai_state = { talent_in=3, },
	combat = { dam=7, atk=10, apr=2, damtype=DamageType.LIGHTNING },
	combat_armor = 0, combat_defense = 0,
	resists = { [DamageType.LIGHTNING] = 100, },
	faction = "air",
	resolvers.equip{
		{type="armor", subtype="feet", defined="ELEMENTAL_ARTIFACT", autoreq=true},
	},
	on_die = function(self, who)
		if game.player.faction == "earth" then
--			game.player:resolveSource():
			game.player:setQuestStatus("destroy-air", engine.Quest.COMPLETED, "air-guardian")
		end
	end,
	
	can_talk = "boss-air"
}
